import 'package:flutter_demo/page/counter_get/view.dart';
import 'package:flutter_demo/page/suddenly_rich/view.dart';
import 'package:get/get.dart';

import '../cross_page/cross_page_event/view.dart';

class HomeLogic extends GetxController {
  static const actionList = [
    "暴富",
    "计数器-响应式",
    "计数器-简单",
    "跨页面交互",
  ];

  void onActionClick(action) {
    switch (action) {
      case "暴富":
        Get.to(() => SuddenlyRichPage());
        break;
      case "计数器-响应式":
        break;
      case "计数器-简单":
        Get.to(() => CounterGetPage());
        break;
      case "跨页面交互":
        Get.to(()=> CrossPageEventPage());
        break;
    }
  }
}
